<?php

class Statics_autor_to {
	
	private $articles;
	private $categories;
	private $descriptions;
	private $images;
	private $videos;
	private $comments;
	private $links;
	
	
	public function __construct($articles, $categories, $descriptions, 
								$images, $videos, $comments, $links) {
		$this->articles = $articles;
		$this->categories = $categories;
		$this->descriptions = $descriptions;
		$this->images = $images;
		$this->videos = $videos;
		$this->comments = $comments;
		$this->links = $links;
	}
	
	public function get_articles() {
		return $this->articles;
	}
	
	public function get_categories() {
		return $this->categories;
	}
	
	public function get_descriptions() {
		return $this->descriptions;
	}
	
	public function get_images() {
		return $this->images;
	}
	
	public function get_videos() {
		return $this->videos;
	}
	
	public function get_comments() {
		return $this->comments;
	}
	
	public function get_links() {
		return $this->links;
	}
		
	public function equals($object) {
		if ((get_class($this) != get_class($object)) ||
				($object == null))				
			 return false;
		else {
			if (($this->articles == $object->get_articles()) &&
				($this->categories = $object->get_categories()) &&
				($this->descriptions = $object->get_descriptions()) &&
				($this->images = $object->get_images()) &&
				($this->videos = $object->get_videos()) &&
				($this->comments = $object->get_comments()) &&
				($this->links = $object->get_links()))
				return true;
			return false;
		}
	}
	
	public function to_string() {
		return 'articles: ' . $this->articles . ' | ' . 
				'categories: ' . $this->categories . ' | ' .
				'descriptions: ' . $this->descriptions . ' | ' .
				'images: ' . $this->images . ' | ' .
				'videos: ' . $this->videos . ' | ' .
				'comments: ' . $this->comments . ' | ' .
				'links: ' . $this->links;
	}
}

?>